package cn.yyvtc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Controller;

/**
 * @author 黄后林
 * @date 2022-11-01 09:10:59
 * @note 程序员是用代码喂出来的
 */
@Configuration

// 1、和Spring MVC的整合
@ComponentScan(value = "cn.yyvtc.workorderms",excludeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class})
})

// 2、和 mybatis的整合
@PropertySource("classpath:jdbc.properties")
@Import({DataBaseReader.class,MyBatisConfig.class})

public class SpringConfig {
}
